#include "../frame.hpp"

const char* title() { return "NanoVG OpenGL3.3"; }
void handleEvent(sdl::event::Event &evt) {}
void render(NVGcontext *nvg) {
  glClearColor(0.2f, 0.3f, 0.3f, 1.0f);
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  nvgBeginFrame(nvg, WND_WIDTH, WND_HEIGHT, 1.f);
  nvgBeginPath(nvg);
  nvgCircle(nvg, WND_WIDTH/2.f, WND_HEIGHT/2.f, 100);
  nvgFillColor(nvg, nvgRGB(255,255,0));
  nvgFill(nvg);
  nvgEndFrame(nvg);
}
